﻿
using System;
namespace Codemonk.Soya
{
    /// <summary>
    /// 字符串转换器
    /// </summary>
    public interface IStringConverter
    {
        /// <summary>
        /// 开始转换
        /// </summary>
        /// <param name="type">类型</param>
        /// <param name="input">输入</param>
        /// <param name="defaultValue">默认值</param>
        /// <returns>返回值</returns>
        object As(Type type, string input, object defaultValue);
    }
}
